package com.youlu.campus.service.postage;

import com.youlu.campus.entity.PostageTemplate;
import com.youlu.campus.entity.VO.req.PostageTemplateQueryVO;
import org.springframework.data.domain.Page;

import java.util.HashMap;

public interface PostageTemplateService {

    Page<PostageTemplate> list(PostageTemplateQueryVO req);

    boolean create(PostageTemplate req);

    boolean update(PostageTemplate req);

    boolean delete(String req);

    PostageTemplate findOne(String id);

    HashMap<String, Integer> getOrderExpreeFee(PostageTemplate postageTemplate, String province, Integer expreeFee);
}
